PROJECT_ID:		1-052  11/28/26
   NCStL 710 EMD 567B-16 Roots 1,500 hp Road Engine GP7  	
 	GP7.SPJ Version 8.2.15.10
Change Note: This version implements use of sound output balance CVs (CV200-Cv205) for most secondary sounds.
ASM:		D8Yc16x8d5.asm	
SDF:		GP7 D8Yc16x8d5<UPDATEDATE>.SDF
BASE CODE:	D8Yc16x8d5 -- Discrete Notching, 16 Channel, SDF Version 5.0
MEMORY:	4-16 Mega bytes required
SDF5.0:	Requires -- 	 #INCLUDE	../SFX5_snd_cmd.INC
					and	 #INCLUDE	../SFX5_snd_macs.inc
 SOUND PROJECT (SPJ) SUPPORTS SDYH168DST DECODER WITH SINGLE OR MULTIPLE SPEAKERS
 SOUND PROJECT (SPJ) REQUIRES SDYH168DST DECODER WITH 16MB FLASH MEMORY
 SOUND PROJECT (SPJ) 44ksps REQUIRES SOUNDLOADER V4.48 OR NEWER
 44ksps project requires sdyh168dst_8sept26 or newer 
DMF: Requires -- SW Ver 2.4 CV253=4 of Series 8 OR newer CV129 Configuration A =0
DST:    Needs -- SW Ver 2.5 CV253=11 of Series 8 OR newer 
XF:     Needs -- SW Ver 2.5 CV253=5 of Series 8 OR newer 
=====================================================================
 INITIAL INSTALL WILL FORCE_DEFAULT_CVSET	
 NOTE: THIS PROJECT CAN RESET MOST CVs WHEN CV8=8 RESET IS DONE AND CV60 IS CHANGED.
  MANUAL CVreset: Set CV188=0 AND THEN SET CV60=0 TO DO THE ALL SOUND CVS RESET...
  THE SPECIFIC CV AS TESTED VALUES FOR THIS SPJ WILL BE LOADED.
  DCC ADDRESS CVs (1,17,18,19,29) WILL NOT BE CHANGED.
             WARNING =====================================================
 When you install one of the new Series 7, 8 projects into an n-scale model that uses 1/2watt speakers:
 1) Load the project to the decoder
 2) Reset all the CVs including CV58 master volume to the as tested values (CV188=0 then CV60=0)
 3) Prior to testing the sound -- Change the value of CV58=5 or 4. The master volume must not be 7,8,or9, or greater.
 4) Then test the sound. 147 Series 7 decoders can output more than 1/2watt to your speaker.
 
 Revised postings will change CV58 to =5 going forward. 
 When you have full sized >1/2watt speakers (HO box, or scale sounds, or railmaster) 
 the project has been tested with CV58=9. G-scale large speakers may use even larger max volumes.
 ADJUST YOUR CV58 MASTER VOLUME DURING TESTING.
 WHEN YOU HAVE SPEAKERS THAT YOU KNOW THAT THEY CAN HANDLE MORE volume
 INCREMENT CV58 BY +1 UNTIL YOU HAVE THE SOUND THAT YOU WANT.
 NOTE: The decoder will overload protect itself when CV58 is increased too much.
=====================================================================
 Author: John McMasters AnPRR https://groups.io/g/AnPRR/files
 	Custom sound scheme NOV, 2026 NOT for resale.
	Project contributed to <||> SPJ Maker web site at Digitrax.com
 ----------------------------------------------------------------------------
 Creative Commons:
 PROJECT_ID: 1-052 NCStL 710 EMD 567B-16 Roots 1,500 hp Road Engine GP7 (c) by John McMasters
 Original Recording: John McMasters used with permission
 PROJECT_ID: 1-052 NCStL 710 EMD 567B-16 Roots 1,500 hp Road Engine GP7 is licensed under a
 Creative Commons Attribution-ShareAlike 4.0 Unported License.
 You should have received a copy of the license along with this
 work---If not, see https://creativecommons-org/licenses/by/4.0/legalcode.txt
 ----------------------------------------------------------------------------
CHANNELS:	16
SERIES:	8
CV60=<0>=DIESEL SOUND SCHEME <Enter Scheme 2 digits for Multi SPJ>
See Demo Sound Sample
https://www.youtube.com/watch?v=<video>
at:
https://www.youtube.com/channel/UCo03Fs3_U43yz_hLkZUUyOA
DO NOT use hyphens in replacement arguments (above) or file names. Use underscores instead.
see <ENTER HERE> in ASM file -- Modify these constants for your custom model 
----------------------------------------------------------------------------
   NCStL 710 Road Engine GP7 Diesel Electric  

Specifications:
 Type and origin
 Power type	Diesel-electric
 Builder
 General Motors Electro-Motive Division (EMD)
 General Motors Diesel (GMD/GMDD)
 Build date	October 1949 – May 1954
 Total produced	2,729 (plus 5 B units)
 Configuration:	 • AAR	B-B
 Gauge	4 ft 81⁄2 in (1,435 mm) standard gauge
 Wheel diameter	40 in (1.016 m)[1]
 Minimum curve	19° (301 ft (91.74 m) radius)
 Wheelbase	40 ft (12.19 m)
 Length	55 ft 11 in (17.04 m)
 Width	10 ft 3 in (3.12 m)
 Height	15 ft 0 in (4.57 m)
 Loco weight	246,000 lb (112,000 kg)
 Fuel capacity	1,600 US gal (6,100 l  1,300 imp gal)[1]
 Lubricant cap.	200 US gal (760 l  170 imp gal)[1]
 Coolant cap.	230 US gal (870 l  190 imp gal)[1]
 Sandbox cap.	18 cu ft (510 dm3)[1]
 No. of traction motors	(4) EMD D-27-B[1]
 Prime mover	EMD 567B
 RPM range	275–800[1]
 Engine type	V16 Two-stroke diesel
 Aspiration	Roots blower
 Displacement	9,072 cu in (148.66 L)
 Generator	EMD D-12-B[1]
 Traction motors	(4) EMD D-27-B[1]
 Cylinders	16
 Cylinder size	81⁄2 in × 10 in (216 mm × 254 mm)
 Loco brake	Independent air  optional: dynamic brakes
 Train brakes	Air, schedule 6-BL[3] or 6-BLC[4]
 erformance figures
 Maximum speed	65 mph (105 km/h)
 Power output	1,500 hp (1,119 kW)
 Tractive effort
 Starting: 65,000 lbf (29,484 kgf) @25%
 Continuous: 40,000 lbf (18,144 kgf) @9.3 mph (15 km/h)
 Career
 Operators	See list
 Disposition	Some retired, some rebuilt into GP8s or GP10s, many in service
	 
----------------------------------------------------------------------------
	INTRODUCTION
----------------------------------------------------------------------------
  This is the Sound Definition Language (SDL) file for a project that can be
  used for a 16bit LARGE FLASH MEMORY sound decoder for a typical locomotive. 
  MULTIPLE SOUND PROJECTS MAY BE STACKED INTO A "Y" Series 8 DECODER.
  EACH INDIVIDUAL SCHEME SPJ HAS ITS OWN SET OF CV VALUES, WAV FILES, SDL CODE.
  A GIVEN PROJECT WILL BE RUN BY SELECTING A 2 DECIMAL DIGIT CV60:
		CV60=10,11,12,13,14,15,16,17,18,19
		...
		CV60=70,71,72,73,74,75,76,77,78,79
  CV60=00,01,02,03,04,05,06,07,08,09 SELECT OLDER (X) Series 7,8 PROJECTS.
----------------------------------------------------------------------------
Features:
	Bells -- bells may be chained to play for simulation of rope pulls
	Low Idle -- Optional, Idle run is trimmed, also optional ALCO stumble
	Fans -- High and low alternate random
	Estop -- F12 will trigger shutdown
 	BR Option User Sounds	--	motor sounds vary: idle blip, load sensing
 			Requires re-assembly with DEFINEd (BR_OPTION) = 0x01	for F1 bell ring (CANNOT DO SINGLE BR WHISTLE UNLESS COMPILED FLAT)
	Variable Dynamics -- F5 will notch up to run 4 and play dynamic fan, speed varied by throttle setting
	Horns/Whistles -- Selectable, playable, signal toots
		Grade crossing horn plays rear horn sounds going backwards
		Analog Playable Horn/whistle/horn (horn runs that had the transition to higher pressure/ very loud modes)
	Brake Interlock	-F10 will lock motor at standstill until released
		Integrated automatic braking sounds on SF3
		All brakes are controlled by SF10 (formerly SF3) so that servo motor decoder braking could be syncronized
		EStop  on F12 On 	(disables motor movement until F12 OFF)
	Manual Notch Run mode 
	16 Channels (1 primary/motor, 3 high priority/whistle/horn, 3 braking bell/air/fan/misc, secondary motor/articulated, auxilary/road/blowers/pumps, CLANKS,SNIFTER,SLIPS/road, blowers/pumps)
 	Auto rod clank cyl blow down (steam cocks open)
 	Coast after deceleration for variable cycles depending on speed
 	Coal grate,  Coal chute,
 	Water Tank Fill, Stoker, shovel, Steam Greaser, Oil Pump, Empty Ash Pan
	Function-activated cylinder cocks sound effect at any speed step
	Manual chuff mode (equivalent to setting the steam throttle i.e. Jonson Bar
	with F26+ and F27- as well as automatic )
	Tracton Motors

 RESET ALL CVs EXCLUDING DCC ADDR TO DESIGN DEFAULTS:
  	WHILE NOT MOVING (AT REST): F15 ON. F17 ON. THEN  F19 ON. 
  	AFTER ALL ANNOUNCEMENTS RESTART PROJECT F12.
  CVRESET EVENT WILL ALSO BE TRIGGERED BY CV8=8 BUT RESET WILL NOT BE ALLOWED EXCEPT AS ABOVE.
  BIT7 OF CV188 WILL DISABLE FUTURE RESETS >>>
  TOGGLE OFF FOR FUTURE RESET::::::::::::
											 
COLD STARTUP FUNCTIONS:
	Play Startup Sounds: F10 (set brake) and then release -F12
	Then toggle F10
==================================================================
 ----------------------------------------------------------------------------
	DESIGN NOTES 
 ----------------------------------------------------------------------------
 NOTE: Make sure that the model CV133 Steam Chuff/CAM config, 128=>EXT cam, 
 	1-200=>DRIVER dia in inches[63]
 	and CV134 Gear ratio are adjusted so that THERE ARE 4 STANDARD NON-ARTICULATED
 	CHUFFS PER REVOLUTION.
 
 CV9 sets the motor frequency in Khz from 4-50KHz. CV9=0 /dflt sets 16KHz. 
 CV10 trims motor tach gain for BEMF, 
 CV10:127 doubles tachometer sensitivity and will slow 1% step (CV19:0 /64) from 
 about 1 scale mph to around 0.5mph. 
														
 The range of CV134/gear ratio is increaased so you can go from 10/32 to 96/32 ratio
 	 (96=3:1 chuff rate/per driver rev)
 
 The new autochuff uses the actual motor speed directly (BEMF) instead of the S6 method 
 	that uses inferred pwm_SOUND speed as chuff source number for rate. 
 	This means the chuffs follow motor speed as the loco loads up and slows down.  
 	To get most effect on a grade/high load, you would lower CV57 so the motor slows 
 	under load, since the BEMF will not stabilize as much.
 	When BEMF is OFF [CV57 =0] or if CV129.1 = 1 then the old default S6 type pwm value 
 	will be used
 
 BEMF (Motor Controls)
 	CV65=2 KICK START
 	CV3=8 ACCELERATION MOMENTUM (How long it takes to speed up to selected throttle value)
 	CV4=6 DECELERATION MOMENTUM (How long it takes to slow down to selected throttle value)
 	CV9=0 DRIVE FREQ.
 	CV55=128 EMF STATIC
 	CV56=80 EMF DYNAMIC
 	CV57=8 (bits 0-3) BEMF (EMF DROOP) (How quick does decoder make the motor react to load)
 	CV129=0 (1=PW6, 0=PW7) POWER (Selects logic to follow changes in motor speed)
	
SET -- SCALE_MIN,2,0	Range Volume Scale 1-14 to a value between 2-15
						Drifting volume will diminish to this level.

Limits:
	One SPJ project SDF of multiple schemes can run up to 64Kbytes of code.
	A single scheme has a 4Kbyte GOTO instruction branch range. (e.g. 2K 2-byte or 1K 4-byte instructions)
	That means that a BRANCH_TO an address beyond the range limit will not execute...


Function Key Mapping:
 DECODERS WITH XF MAPPING CAN REMAP FUNCTION KEYS WITHOUT CODE CHANGES.
 
 This version (v7) includes CODE sections for mapping functions to default to other manufactures F0-F28 keys. 
 Or you can edit the TRIG include file, re-assemble and make your own custom function mapping.
 
 HOW LEGACY FUNCTION KEY MAPPING WORKS
 Mapping functions to default to other manufactures F0-F28 keys:
 Mapping is done by using symbolic constants to define the hex value for each function key. 
 For example TRIG_WHISTLES_ON is a value of 0x09. 
 The hex value 0x09 is the physical decoder function key (F2 in this case). 
 This is the same as the standard include for TRIG_SF2	 EQU  0x09     byte 1, bit1.  
 And the new symbolic constant is TRIG_WHISTLES_ON	 EQU  0x09     2-F2: byte 1, bit1. 
 The base code CAN use the remapped symbolic name for all functions. 
So any change to the physical assignment is masked.
Whereas TRIG_SF4	 EQU 0x0B now has a symbolic value of TRIG_OPENCYLS_ON EQU 0x0B 4-F4: CYL COCKS
One of the re-mapped values is TRIG_SAFETY_ON	 EQU  0x24 25-F25: BLOWOFF
This means that when F25 is toggled the SAFETY BLOWOFF sound function will play.
I have annotated eac EQU statement with the physical decoder button number 
for example: 2-F2: byte 1, bit1
See D8YTrigV8.INC for F-Key values. The ASM code has the INCLUDE for this file name.


----------------------------------
     FUNCTION KEYS DEFINED:   
----------------------------------
(A) Function Key Usage: 
F0- Lights  [disables start-up sounds when on during initialization]
F1- Bell (Bells1-4 may be chained)
F2- Horn/Whistle	CV150 selects Horn/Whistle type	(Playable when bit7 of CV150 is on)	   Shorter sounds when SF3 ON
F3- Coupler / Shorter Whistle
F4- Emergency Lights / BR Guards W / Air Snd disable
F5- Dynamic brake fans when moving		
F6- Ditchlights (Front -- flashing) / BR User S2
F7-	Alt Grade Crossing / BR User S3
F8- Mute control 
F9-  UnCouple / Coupler disconnect	[Auto-coupler/brake set by  CV151 max spd]
		Lift ring and connect plays with F9 
F10- BRAKE TO STOP Independent Brake/Train Brake	[Leave F3 OFF for auto brakes] 
			[F10 on will enable servo motor stop.]
			Toggle OFF plays directional toots WHEN F3 ON
		1) Slow servo motor to stop using CV3,CV4 momentum values (where
			larger value (50) takes longer to slow/accelerate)
		2) Lock motor at standstill to simulate engine brake set. Servo
			will not resume until F10 is toggled off.
		3) While brake is set toggle F3 on to begin uncoupling. SF3 will play 
			lift ring noise in preparation for disconnect. 
		4) Releasing the brake and advancing the throttle will play coupler
			disconnect when F3 is already on.
		Brake rate is determined by BEMF and CV3,4
	 	Auto Coupler coupler clank and BRAKE if F3 is ON,  is dir chng and last PK spd below e.g. CV151
			[Auto-coupler/brake set by  CV151 max spd] SF3 ON for un-coupler
			[Leave F3 on for auto coupler]	
 	F10 OFF -- Release Brake [not F10 Apply else Release] 
F11- Train Brake (moving)  
F12- EStop when moving and shut-down (disables motor movement until OFF)
F13- Enables AUX generator / HEP 
F14- Compressor 
F15- Engine Compartment Sounds / User Sound / Option / Hand Brake  
F16- Traction Blower
F17- Air Dryer / RESET / ABOUT
F18- Sanding Valve 
F19- Short Air Let Off / Replace Horn with Whistle / CVRESET
F20- High Fan     
F21- Straight to manual notch1
F22- User Sound
F23- Flanges (continuous when moving) 
F24- Reverser Center
F25- 
F26- Manual Notching Up 
		Leave on for increased load
		Leave SF26 OFF to use run trim option: [will increment 
		notches on acceleration events 
		SF27 will decrement run trim.
F27- Notch down	-- Leave ON for decreased load
		Toggle SF27 ON Is notch down for EVENT, 
			integrate -VE in SPEED_DELTA
		SF27 will decrement run trim (i.e., use to select lower trim value).
		Wheel-slip, when CV155 is not 0 and SF3 ON
		Manual Notching Down / Coast
F28- Straight to Manual Notch8, Heavy Load

 
	==================================  
(B) Diesel Sound FX defined CV's: 	[decoder CV8=8  reset value in brackets]
FOR INFO ONLY -- DO NOT SET YOUR DECODER TO THESE DEFAULT VALUES. USE THE CVreset ROUTINE ABOVE.
CV1   2 Digit DCC Address 1 3-127, [3]
CV3   Momentum acceleration rate, 0-31, 31=max, (F10 uses after braking to stop) [30]
CV4   Momentum deceleration rate, 0-31, 31=max, (F10 uses for braking to stop) [30]
CV7   Version ID 51=Older decoders, 16=Newer SFX2 decoders
CV8   SCV_RESET  Reset Decoder values to factory =129=Digitrax
CV9   Drive Freq 0-16 [0]
CV10  TACH 0,127 Ver3 default0= Normal 1/1, 127= Half 1/2
CV19  Advanced Consist [0]
CV21  Advanced Consist F0-F8 [248] 
CV22  Advanced Consist F3-F12 [52] 
CV23  Acceleration Mass 0-255 [30] 
CV24  Deceleration Mass 0-255 [30] 
CV29  Configuration Register  Speed steps, 2 /4 digit addressing, Analog Mode, Normal direction of travel, speed tables [6] 
CV49  FX effect: Forward Light (FOF) [0]
CV50  FX effect: Reverse Light (FOR) [0]
CV51  FX effect: Function 1 lead [0]
CV52  FX effect: Function 2 lead [0]
CV54  Road or Switching Mode [64,0,1]
CV55  EMF STATIC 0-255 [128]
CV56  EMF DYNAMIC 0-127 [80]
CV57  BEMF (bits 0-3)(EMF DROOP) [8] (How quick does decoder make the motor react to load)
CV58  Master Volume, 0-15, 0= max, (F8 used for Mute) [11] 
CV60  Select Scheme, 0=Diesel 0-9	[0] Opt Reset ALL CVs
CV64  Logic select CV, 0=Aux Logic output 64=Normal LED outputs	[64]
CV65  Kick Start 0-16  
CV105 SCV_USER_SDF_SUB_ID		CV105 	[xx] Sub ID is SUB id or project version
CV106 SCV_USER_SDF_FIX_ID		CV106 	[xx] FIX ID is change id or project release
CV129 SNDCV_CONFIGA POWER (1=PW6, 0=PW7)  [0](Selects logic to follow changes in motor speed)
CV132 Engine Notch rate						64-192	[128]
CV133 DRIVER Chuff/CAM config, 128=>EXT cam, 1-200=>DRIVER dia in inches [60]
CV134 Gear ratio trim, 32=100% ratio,	[41]  Range of CV134/gear ratio is increaased so you can go from 10/32 to 96/32 ratio (96=3:1 chuff rate/per driver rev)
CV135 vol level when MUTE action is triggered, e.g. F8=ON	[30]
CV139 Set to trigger distance event			0-240	[192]
CV140 PRIME mover Diesel/chuff exhaust vol	0-64	[50]
CV141 Bell Volume							0-64	[36]
CV142 WHISTLE/HORN vol						0-64	[42]
CV143 AIR feature volume, DRYER, compressor, brake release Air sounds Volume 0-64 [49]
CV144 Engine brake volume 					0-64	[55]
CV145 Miscellaneous volume 					0-64	[51] 
CV146 Delay (24mS counts) between Bells 1-100	[01] 
CV147 Time between DRYER cycles Users normally reset DRYER rate to 10 or more[27] 
CV148 Time between Air pump/Compressor cycles	[30] 
CV149 Air pump/Compressor run time				[52] 
CV150 Horn/Whistle Selector,0=std ,  1/7 =Alternate, +128 for Playable volume [0]
			HORN SELECTED CV150:
						Decimal	HEX			Bit
											7654 3210
				1		0		0x00		0000 0000
				2		1		0x01		0000 0001
				3		2		0x02		0000 0010
				4		3		0x03		0000 0011
				5		4		0x04		0000 0100
				6		5		0x05		0000 0101
				7		6		0x06		0000 0110
				PLAYABLE:
				1		128		0x80		1000 0000
				2		129		0x81		1000 0001
				3		130		0x82		1000 0010
				4		131		0x83		1000 0011
				5		132		0x84		1000 0100
						Decimal	HEX			Bit
CV151 speed limit FOR AUTOMATIC COUPLER/BRAKE on DIR chng. about 1/2MPH per unit
CV152 defines USER code for this SDF
CV153 is SUB id
CV154 Steam blow down/Safety vol					0-64	[59]
CV155 Notching mode 0=AUTO, 1=SEMIAUTO, 2=MANUAL NOTCHES	[01] /STEAM Slip Mode: 0=AUTO, 1=SEMIAUTO, 2=MANUAL 						[01]
CV156 delay for HORN start in 27mS VALUES
CV157 is FOR bell selection 
	BELL SELECTED CV157:
						Decimal	HEX			Bit
											7654 3210
				1		0		0x00		0000 0000
				2		1		0x01		0000 0001
				3		2		0x02		0000 0010
				4		3		0x03		0000 0011
				5		4		0x04		0000 0100
CV158 DIGITRAX RESERVED
CV159 Grate Shaker Volume							0-64	[64]
CV160 VARIANT id or project version					0-254	[000]
CV161 Coal Stoker run time							0-254	[20]							
CV162 Air Letoff / Steam Water Injector Volume 		0-64	[25]
CV163 Safety Run Time/ how often to check boiler pressure		0-64	[32]
CV164 Level in the guage/ Water Pump Cycle Time, percent full	0-64	 [19]
CV165 add fuel to firebox at 150lbs/ Stoker/oil pump run time	0-254	[20]	
CV166 Cutoff Speed for wheel slip chuffs			4-9	[9]
CV167 Cutoff Speed for Auto Cyl- Close Speed		0-64	[7]
CV168 Sander Volume									0-64	[32]
CV169 Cutoff Speed for high speed chuffs			40-99	[48]	
CV170 Cutoff Speed LOW	skips brake sounds			4-39	[12]
CV171 AUX GEN VOLUME								0-64	[40]
CV172 FAN MOTOR VOLUME								0-64	[30]
CV173 STEAM blowdown volume							0-64	[50]
CV174 AIR DRYER Air sounds Volume 					0-64	[49] 
CV175 Air compressor volume							0-64	[40]
CV176 TRACTION MOTOR 								0-64	[30]			
CV177 Coupler Slack Volume							0-64	[31]
CV178 Wheel Flange 	Volume							0-64	[40]
CV179 Dynamic brake / Dynamo volume 				0-64	[55]
CV180 Delay brake apply / speed at which brake sounds begin to play	1-100 [12] 
CV181 Power Reverser volume							0-64	[40]
CV182 brake release Air sounds Volume 				0-64 	[32] 
CV183 Water fill Volume								0-64	[54]
CV184 Steam Cocks Open Threshold Speed 				1-64	[24]
         NOTE: BIT VALUES IN CV185-188 ARE REQUIRED FOR SOUND OPTIONS             
  FEATURES: A default install should run normal idle. Most values should be zero		 
CV185 bit values to disable features1:				0-128	[0]
		bit0 disable  HEP diesel =0 AUX GEN	=1			=1		
		bit1 disable hard automatic braking 			=2
		bit2 disable start up sounds					=4
		bit3 disable Fans								=8
		bit4 disable toots on direction change			=16
		bit5 disable grade crossing random play 		=32
		bit6 disable bell								=64
		bit7 Gen1-Gen2 Startup Sounds Opt				=128
CV186 bit values to disable additional features2 	0-128	[0]
 		bit0 disable Diesel Low Idle=0 	Enabled=1		=1	 low idle WAVs (4) must be assigned 
 		bit1 disable Chain bells 1-4 					=2
 		bit2 disable STOKER change to SHOVEL			=4
 		bit3 disable BR Option User Sounds				=8
 		bit4 disable Shaft Driven Compressor 			=16
 		bit5 disable Idle Hunt=32 Disable=0				=32	 bit0 must also be enabled and low idle WAVs present
 		bit6 disable Builtin Idle Hunt	 0=Off, 1=On	=64	 HNDL_RUN_LOW_IDLE must be assigned
		bit7 disable Dual Prime Movers				0=Off 128=Dual On
CV187 bit values to disable additional features3 	0-128 [0]
		bit0 disable Short Opt Horn/whistle	 Enabled=0,   =1=disabled
		bit1 disable AC/DC Transition  0=off 1=enabled =2
		bit2 disable Bell on Idle Exit				=4
		bit3 disable Motor Lock  					=8
		bit4 force startup sounds					=16
		bit5 disable Dynamic BRAKES					=32
		bit6 disable Inverse Backup Direction		=64
		bit7 disable Auto Wheel Slip				=128
CV188	BIT values to disable additional features4	0-254 [0] 
		bit0 disable Traction Motor 		= 1 Disabled
		bit1 disable HILO HORN				= 2 Disabled
		bit2 disable Horn Rear				= 4 Enabled
 		bit3 disable Disable Articulated DE-SYNC	=8
		bit4 disable Disable 3rd Cyl Chuffs			=16
 		bit5 disable ROD CLANKS						=32
		bit6 disable Disable/Enable Gen1 Transition	=64	=on=Disable
		bit7 disable Disable/ENABLE CV RESET ALL	=128 BIT OFF WILL ALLOW RESET
------- BIT7 OF CV188 WILL DISABLE FUTURE RESETS >>>
------- TOGGLE OFF FOR FUTURE RESET::::::::::::
CV189 BIT values to disable additional features5 
		bit0 disable compressor 		= 1 Disabled
CV190 Minimum Speed Slip			0-32	[5]
CV191 Drift Volume	PRIME MOVER COASTING [32]
CV192 Cutoff Speed for BRAKING	4-9	[11]
CV193 REAR ENGINE mover / Chuff vol  0-64	[50]
CV194 Water Alarm Volume			0-64	[45]
CV195 Stoker Volume				     0-64	[32]
CV196 Stoker/oil pump run time		     0-254	[20]
CV197 Time between articulated chuffs CHG	40-128	[100]
CV198 NOTUSED Volume				0-64	[40]
CV200-255 RESERVED FOR OEM USE

 	Speaker Balance CVs
SCV200_DTRX_BALA,61,0	 CV200 Front Horn 				vol 0-255	[61]
SCV201_DTRX_BALB,76,0	 CV201 Mid-front Reverser, Bell vol 0-255	[76]
SCV202_DTRX_BALC,204,0	 CV202 Center Prime mover, Train brake, Traction vol  0-255	[204]
SCV203_DTRX_BALD,196,0	 CV203 Mid-rear Sander, Drier, Compressor 		 vol  0-255	[196]
SCV204_DTRX_BALE,211,0	 CV204 Rear Fans, AUX gen, Dynamics 			 vol  0-255	[211]
SCV205_DTRX_BALF,210,0	 CV205 Tender 					 vol 0-255	[210]

 Balance-CV values for preset level % for Front and Rear are defined in following table:
 Balance % level	Front Speaker value term	Rear Speaker value term 	Note
 	No change				0							0					Keeps last volume
 	0% 						1							16					0% is muted 
 	8 %						2							32				
 	16%						3							48					
 	25%						4							64					
 	33%						5							80					
 	42%						6							96					
 	50% 					7							112					
 	58% 					8							128					
 	68%						9							144					
 	75%						10							160					
 	84%						11							176					
 	92%						12							192					
 	100%					13							208					
 
 Full volume % Front and Rear would be (13+208) or 221 value, and would image as a ‘centered’ value at the full channel volume in 
 effect for that wav sound(s). 
 A zero Front and/or Rear contribution allows the last level settings for that speaker to remain in effect, 
 so the CV only affects the levels of a non-zero% entry. 
 Using the 0% speaker setting will allow the sound to only appear in the other speaker that has 8% to 100% level. 
 For example set CV201, typically for Bell/Reverser to (1+208) = 209 to ‘move’ these sounds from Mid-front to a 100% Rear setting, 
 making these sounds appear to now emanate only from the ‘rear’ location. 
 A value of 255 in a Balance-CV will also put both channels to 100% volume. 
 Steam SPJ’s have predefined Balance settings, fixed to place the near- and far-cylinder chuffs of both simple and 
 articulated engines to provide image separation of sounds when using two speaker output decoders. 
 All the speaker outputs are differential power driven so you cannot connect any of the + or- leads together, or 
 connect a speaker lead to ground/common. 
 

-------------------------------------------------------------			 
(C) General Notes
Project sounds are amplified to the limit. When lower power is supplied while on
a test bench using SoundLoader louder sounds will exceed the speaker output range (see formula). 
Running at full power on the main track in real use, sound levels may be increase significantly.
This project was tested at Master Volume CV58=11. Horn Volume was tested at CV142>50. 
Prime mover Volume was tested at CV140>50. However,
Default Master Volume CV58=6 THIS SHOULD BE 7 OR LESS FOR TESTING WITH SOUNDLOADER - JohnM 

Set CV60 to 0 for this project.
The SDYH168 16bit Series 8 SFX decoders allow downloading of 8,12 and 16 bit wave files and up to 4 
voices defined in the SDF project definition embedded in SPJ file. 

For CV155=00 ["Automatic Notching"] when CV60=0 to 5 (Diesel),  the Prime mover lowest Notch setting is set by
the current throttle speed setting. F26 (ON) can increase the Notch and F27 (ON) will decrease the Prime mover
to the minimum notch set by current throttle setting.



Cam triggered exhaust sounds (e.g. steam) are only configured for 8 or 16 bit wav file downloads.
			 notes:
 The last 24mar23? dmf has the first CAM trig as A pos polarity immediately as digital speed goes from 0 to moving code. 
 This will be the first chuff in positive trig sense, and following chuffs will then modulate based on motor BEMF voltage reading, unless you make cv[129] bit1 value 1.
 This means the phase will always start at chuff 1 
 
 You can use the normalization of gear ratio cv[134]/32 or driver diameter cv[133]/60 to adjust the "correct" chuff rate. I did a 1mph (1x5280'x12" per 3600 secs) , calculation of a 60" driver with 4 chuffs, but may not have enuf Kentucky windage    
 
 The driver is assumed as 60" and gear ratio is [0 or 32] for 100% or 1:1 gear rate.
								   
 Once you get above about 45% throttle even if we pitch bend up (shorten) the chuffs, they merge and center-pack on both channels-
											   
NOTES:
 Coding note:
 Looping plays must be expressed as
 _OFF,loop_INVERT which passes 0x08 to the repeat loop play.
  Passing 0x00 will not interrupt the repeat loop.
 For the PLAY break field, the sense is not encoded as trigger .7 polarity like 0x89. It is:
 5-bit loop break code = trigger/event selector
 separate PLAY break invert bit = loop_INVERT
 
 loop_STD	EQU	0x00		 default is NO loop logic modification
 loop_GLOBAL	EQU	0x10		 assert to loop and UP 1 level...
 loop_INVERT	EQU	0x08		 invert/FALSE POL of loop to generate WAV BREAK condition
 ----------------------------------